﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Analyse.aspx.cs" EnableEventValidation = "false" Inherits="Analyse" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>流程设置</title>
    <link href="css/allocation.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div id="wrapper">
        <div id="mainContent">
            <div id="allocationTable" class="dhd_table">
                <form id="form1" runat="server">
                    <h1>
                        <asp:Label ID="lblMsg" runat="server" ></asp:Label>月份统计
                        </h1>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td width="15%" style="text-align: left; width: 100%;" colspan="2">
                                <span style="display:inline ;padding-right:20px">请选择年份：<asp:DropDownList ID="ddlYear" runat="server">
                                </asp:DropDownList></span>
                                请选择月份：<asp:DropDownList ID="ddlMoth" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlMoth_SelectedIndexChanged">
                                    <asp:ListItem Value="1">1月份</asp:ListItem>
                                    <asp:ListItem Value="2">2月份</asp:ListItem>
                                    <asp:ListItem Value="3">3月份</asp:ListItem>
                                    <asp:ListItem Value="4">4月份</asp:ListItem>
                                    <asp:ListItem Value="5">5月份</asp:ListItem>
                                    <asp:ListItem Value="6">6月份</asp:ListItem>
                                    <asp:ListItem Value="7">7月份</asp:ListItem>
                                    <asp:ListItem Value="8">8月份</asp:ListItem>
                                    <asp:ListItem Value="9">9月份</asp:ListItem>
                                    <asp:ListItem Value="10">10月份</asp:ListItem>
                                    <asp:ListItem Value="11">11月份</asp:ListItem>
                                    <asp:ListItem Value="12">12月份</asp:ListItem>
                                </asp:DropDownList></td>
                        </tr>
                        <tr>
                            <td width="15%" style="text-align: left">
                                统计结果：</td>
                            <td width="85%" style="padding-left:0;padding-right:0;text-align:center">
                                <asp:DataGrid ID="dgResult" runat="server" AutoGenerateColumns="False" ShowFooter="True"
                                    Width="100%" OnItemDataBound="dgResult_ItemDataBound">
                                    <Columns>
                                        <asp:BoundColumn DataField="DEPID" HeaderText="部门ID" Visible="False"></asp:BoundColumn>
                                        <asp:BoundColumn DataField="DEPNAME" HeaderText="部门名称"></asp:BoundColumn>
                                        <asp:TemplateColumn HeaderText="提交的异常总数">
                                            <FooterTemplate>
                                                <asp:Label ID="lblAllDepCount" runat="server" Text="合计："></asp:Label>
                                            </FooterTemplate>
                                            <ItemTemplate>
                                                <asp:Label ID="lblAllCount" runat="server"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateColumn>
                                        <asp:TemplateColumn HeaderText="已处理的异常数量">
                                            <FooterTemplate>
                                                <asp:Label ID="lblAllDoneCount" runat="server" Text="合计："></asp:Label>
                                            </FooterTemplate>
                                            <ItemTemplate>
                                                <asp:Label ID="lblDoneCount" runat="server"></asp:Label><br />
                                            </ItemTemplate>
                                        </asp:TemplateColumn>
                                        <asp:TemplateColumn HeaderText="未处理的异常数量">
                                            <FooterTemplate>
                                                <asp:Label ID="lblNoFinishAllCount" runat="server" Text="合计："></asp:Label>
                                            </FooterTemplate>
                                            <ItemTemplate>
                                                <asp:Label ID="lblNoFinishCount" runat="server"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateColumn>
                                    </Columns>
                                    <HeaderStyle ForeColor="#046D30" />
                                </asp:DataGrid></td>
                        </tr>
                        <tr>
                            <td>
                            </td>
                            <td style="text-align: center">
                                <asp:Button ID="btnExport" runat="server" Text="导出Excel" OnClick="btnExport_Click" />
                                <asp:Button ID="btnBack" runat="server" OnClick="btnBack_Click" Text="返   回" /></td>
                        </tr>
                        <tr>
                            <td>
                            </td>
                            <td>
                            </td>
                        </tr>
                       
                    </table>
                </form>
            </div>
            <!-- end of mainContent -->
        </div>
        <!-- end of mainContent -->
        <div id="copyright">
            <p>
                Copyright&copy; 2009-2010 All rights reserved.<strong><a href="mailto:446010855@163.com">桂林供电局</a></strong></p>
        </div>
        <!-- end of copyright -->
    </div>
</body>
</html>

